package com.gitee.qdbp.general.common.api.reusable.service;

import java.util.List;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.base.system.model.IAccount;
import com.gitee.qdbp.general.common.api.reusable.model.SimpleTreeBean;
import com.gitee.qdbp.general.common.api.reusable.model.SimpleTreeUpdate;

/**
 * 基础树形数据业务接口
 *
 * @author zhh
 * @version 180514
 */
public interface ISimpleTreeExecutor {

    void swapIndex(String scene, String oneCode, String twoCode, IAccount me) throws ServiceException;

    void updateIndex(String scene, String code, int sortIndex, IAccount me) throws ServiceException;
    
    String create(String scene, SimpleTreeBean model, IAccount me) throws ServiceException;

    void update(String scene, SimpleTreeUpdate model, IAccount me) throws ServiceException;

    void deleteByCode(String scene, String code, IAccount me) throws ServiceException;

    void deleteByCodes(String scene, List<String> codes, IAccount me) throws ServiceException;

}